home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7795 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  68 lines

  1. Path: ix.netcom.com!netnews
  2. From: bkol@ix.netcom.com(Robert Kolman )
  3. Newsgroups: comp.lang.c++
  4. Subject: BC++ Class Libraries - Example Won't Compile
  5. Date: 19 Feb 1996 02:16:40 GMT
  6. Organization: Netcom
  7. Message-ID: <4g8mi8$5fu@cloner3.netcom.com>
  8. References: <AMCHAVAN.96Jan25112007@ac2.hq.eso.org> <4f6tt6$rt1@news.cencom.net> <311A83D1.57A3@feith.com> <4fe4m4$f1c@news.ee.net> <4fflin$92t@murrow.cor <4g7k0n$14k@aphex.direct.ca> <4g7oph$pdh@news.jhu.edu>
  9. NNTP-Posting-Host: ix-dfw16-13.ix.netcom.com
  10. X-NETCOM-Date: Sun Feb 18  6:16:40 PM PST 1996
  11.  
  12. /*
  13. This example, provided in the BC++ 4.5 Class Libraries Guide
  14. does not compile.  It produces 11 error messages, all which resemble
  15. the following:
  16.  
  17. Error ..\..\BC45\INCLUDE\CONSTREA.H 129:
  18.   Call to undefined function 'highvideo' in function
  19. conbuf::highvideo()
  20. Error ..\..\BC45\INCLUDE\CONSTREA.H 135:
  21.   Call to undefined function 'lowvideo' in function conbuf::lowvideo()
  22. Error ..\..\BC45\INCLUDE\CONSTREA.H 141:
  23.   Call to undefined function 'normvideo' in function
  24. conbuf::normvideo()
  25.  
  26. */
  27.  
  28. #include <constrea.h>
  29.  
  30. int main( void )
  31. {
  32.     constream win1;
  33.  
  34.     win1.window ( 1, 1, 15, 15 );
  35.     win1.clrscr();
  36.  
  37.     win1 << setattr((BLUE << 4 ) | WHITE )
  38.          << "This text is WHITE on BLUE.";
  39.  
  40.     win1 << setxy( 10, 10 )
  41.          << "This text is in the middle of the window.";
  42.  
  43.     return 0;
  44. }
  45.  
  46. /*
  47.  
  48. When I look at <constrea.h>, I find the following definition:
  49.  
  50. inline void _RTLENTRY conbuf::highvideo()
  51. {
  52.     activate();
  53.     ::highvideo();
  54. }
  55.  
  56. I'm relatively new to C++, but I recognize the class reference.
  57. Is "::highvideo()" an invocation of the base class, and if so,
  58. why isn't my compiler finding it?
  59.  
  60. Thanks in advance for any help.
  61.  
  62. Bob K.
  63.  
  64. P.S.  This mail message should compile as is.  My text is 
  65. commented out.
  66. */
  67.  
  68.